<?php
require_once 'Director.php';
require_once 'ConcreteBuilderA.php';
require_once 'ConcreteBuilderB.php';
$director = new Director();
/**
 * 套餐A
 */
$res = $director->build(new ConcreteBuilderA());
echo '<pre>';
print_r($res);
/**
 * 套餐B
 */
$res = $director->build(new ConcreteBuilderB());
echo '<pre>';
print_r($res);
